<?php

/**
 * =====================================
 * Definición de rutas de la aplicación.
 * =====================================
 */

use App\Core\Route;

$router->get(Route::base('/'), [\App\Controllers\ApiController::class, 'welcome']);

// Usuarios.
$router->post(Route::base('/v1/users'), [\App\Controllers\UserController::class, 'create']);
$router->get(Route::base('/v1/users/@id'), [\App\Controllers\UserController::class, 'show']);
